Skip to content

Conversation

LucaCappelletti94
Copy link
Contributor

@LucaCappelletti94 LucaCappelletti94 commented Oct 6, 2025

As per title, in this PR I moved several of the struct variants out of the Statement enum. This refactoring allows for implementing traits and methods which specifically expect one particular statement, and not all of them.

I have focused on the variants which I am familiar with, primarily those related to PostgreSQL. There are still other struct variant which we might want to move out, such as Drop, but that variant would need to be renamed into some other naming convention because of the collision with the Drop trait.

This PR works towards solving issues such as #1204

Best,
Luca

@LucaCappelletti94 LucaCappelletti94 changed the title [DRAFT] Moving all struct variants out of Statement enum to allow for trait impls for specific sub-variants Moving several struct variants out of Statement enum to allow for trait impls for specific sub-variants Oct 6, 2025
@LucaCappelletti94 LucaCappelletti94 marked this pull request as ready for review October 6, 2025 13:53
Copy link
Contributor

@iffyio iffyio left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Thanks @LucaCappelletti94!

@iffyio
Copy link
Contributor

iffyio commented Oct 10, 2025

@LucaCappelletti94 could you take a look at resolving the conflicts when you get the chance?

@LucaCappelletti94
Copy link
Contributor Author

@LucaCappelletti94 could you take a look at resolving the conflicts when you get the chance?

Yeah, let's first wrap up also the sqlite trigger and then I will handle all of the merge conflicts.

@iffyio iffyio added this pull request to the merge queue Oct 10, 2025
Merged via the queue into apache:main with commit cc595cf Oct 10, 2025
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants